<?php
    require "php/showPage.php";
    $msg = Select(); #  获取显示的选项
//    var_dump($msg);
?>

<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <meta http-equiv="X-UA-Compatible" content="ie=edge">
  <link rel="stylesheet" href="css/bootstrap.min.css">
  <link rel="stylesheet" href="css/index.css">
  <link rel="stylesheet" href="css/font.css">
  <script src="js/jquery-3.1.1.min.js"></script>
  <script src="js/index.js"></script>
  <title>Document</title>
</head>
<body>
  <nav class="navbar navbar-fixed-top">
    
    <div class="container">
      <div class="row" style="height: 100px;">
        <div class="col-md-2" style="height: 100px;">
          <img src="./images/headerLeft.jpg" alt="" width="100%" height="100%">
        </div>
        <div class="col-md-10 bck" style="height: 100px;">
          <div class="row">
            <div class="col-md-offset-8 col-md-1">
              <a href="select.php">
                首页
              </a>
            </div>
            <div class="col-md-1">
              <a href="add.html">
                添加
              </a>
            </div>
            <div class="col-md-1">
              <a href="myself.html">
                个人
              </a>
            </div>
            <div class="col-md-1">
              <a href="php/logout.php">
                退出
              </a>
            </div>
          </div>
          <!-- <img src="./images/headerRight.jpg" alt="" width="100%" height="100%"> -->
        </div>
      </div>
    </div>
  </nav>
  
  <div >
      <div class="container">
        <div class="row" id="lgn-main">
            <div class="sel-main col-md-7 col-md-offset-3">
                <div class="lgn-horizontal lgn-left-position"></div>
                <div class="lgn-vertical lgn-left-position"></div>
                <div class="lgn-horizontal2 lgn-right-position"></div>
                <div class="lgn-vertical2 lgn-right-position"></div>
    
                <div class="lgn-title row">
                  <div class="col-md-12">
                    <img src="./images/title.jpg" alt="" class="img-circle" width="100px">
                    <span class="lgn-span">Debate Date Query Library</span>
                  </div>
                </div>

                <form class="form-horizontal" action="" method="post">
                  <div class="form-group">
                    <label for="" class="col-md-offset-2 col-md-2 control-label">辩题查询</label>
                    <div class="col-md-5">
                      <input type="text" class="form-control" placeholder="请输入辩题">
                    </div>
                  </div>
                  <div class="form-group">
                    <label for="" class="col-md-offset-2 col-md-2 control-label">比赛查询</label>
                    <div class="col-md-5">
                      <input type="password" class="form-control" placeholder="请输入比赛">
                    </div>
                  </div>
                  <div class="form-group">
                    <label for="" class="col-md-offset-1 col-md-3 control-label">比赛类型</label>
                    <div class="col-md-5">
                      <select name="" id="" class="form-control">
                          <?php
                            $len = count($msg);
                            for($i = 0; $i < $len; $i++){
                                echo "<option>".$msg[$i][activityname]."</option>";
                            }
                          ?>
                      </select>
                    </div>
                    <!--<div class="col-md-5">-->
                      <!--<input type="password" class="form-control" placeholder="请输入校园比赛">-->
                    <!--</div>-->
                    <!--<div class="col-md-3">-->
                      <!--<a href="result.html">-->
                        <!--<button  type="button" class="btn btn-default">查询</button>-->
                      <!--</a>-->
                    <!--</div>-->
                  </div>
                  <div class="col-md-offset-5 col-md-2">
                    <button type="submit" class="form-control btn btn-default">查询</button>
                  </div>
                </form>
            </div>
        </div>
      </div>
  </div>
</body>
</html>